#ifndef __X64_STDARG_H__
#define __X64_STDARG_H__
typedef char* va_list;

#define va_start(ap, last) (ap = (va_list)&last + sizeof(char *))
#define va_arg(ap, type) (*(type*)((ap += sizeof(char*)) - sizeof(char *)))
#define va_end(ap) (ap = (va_list)0)

#endif